#pragma once
#include <iostream>
#include <sstream>
#include <fstream>
#include <string>
#include <iomanip>

using namespace std;
#include "Vehicle.h"
class Lorry :
	public Vehicle
{
private:
	double weight;
public:

	Lorry()
	{
		weight = -1;
	}

	Lorry(string brand, int year, double purchasingPrice, double sellingPrice, double weight)
		: Vehicle(brand, year, purchasingPrice, sellingPrice)
	{
		this->weight = weight;
	}

	~Lorry()
	{
	}

	void setWeight(double weight){ this->weight = weight; }
	double getWeight(){ return weight; }

	void print()
	{
		Vehicle::print();
		cout << ", Weight: " << weight;
	}
};

